package com.hk.commons.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * 客户意向信息表
 * 
 * @author baiht
 * 
 */
@Entity
@Table(name = "CustomerIntention")
public class CustomerIntention implements java.io.Serializable{

	private static final long serialVersionUID = -1584980532386228461L;

	@Id
	@Column(name = "Id", length = 20)
	private Long id;

	/** 客户id */
	@Column(name = "CustId", length = 10)
	private Long custId;
	
	/**来访方式*/
	@Column(name = "VisitType", length = 100)
	private String visitType;
	
	/**来访日期*/
	@Column(name = "VisitTime")
	private Timestamp visitTime;
	
	/**面积*/
	@Column(name = "Area")
	private Double area;
	
	/**朝向*/
	@Column(name = "Direction", length = 100)
	private String direction;
	
	/**楼层*/
	@Column(name = "Floor", length = 100)
	private String floor;
	
	@Column(name = "CreateTime")
	private Timestamp createTime = new Timestamp(System.currentTimeMillis());

	@Column(name = "Creator", length = 20)
	private String creator;
	
	@Column(name = "UpdateTime")
	private Timestamp updateTime;

	@Column(name = "Updator", length = 20)
	private String updator;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCustId() {
		return custId;
	}

	public void setCustId(Long custId) {
		this.custId = custId;
	}

	public String getVisitType() {
		return visitType;
	}

	public void setVisitType(String visitType) {
		this.visitType = visitType;
	}

	public Timestamp getVisitTime() {
		return visitTime;
	}

	public void setVisitTime(Timestamp visitTime) {
		this.visitTime = visitTime;
	}

	public Double getArea() {
		return area;
	}

	public void setArea(Double area) {
		this.area = area;
	}

	public String getDirection() {
		return direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	public String getFloor() {
		return floor;
	}

	public void setFloor(String floor) {
		this.floor = floor;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

	public String getUpdator() {
		return updator;
	}

	public void setUpdator(String updator) {
		this.updator = updator;
	}
}
